package com.itheima.pool;

import java.util.concurrent.*;

public class Demo03 {

    public static void main(String[] args) {
        ThreadFactory threadFactory = Executors.defaultThreadFactory();
        ThreadPoolExecutor pool = new ThreadPoolExecutor(
            4,
            10,
            60,
            TimeUnit.SECONDS,
            new LinkedBlockingQueue<>(),
            threadFactory,
            new  ThreadPoolExecutor.AbortPolicy()
    );
}
}
